package com.mtnz.njk.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.OrderBy;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Description: 社区首页轮播图实体类
 * @Author: FBL
 * @CreateDate: 2019\8\30 0030 9:34
 * @Version: 1.0
 */
@Data
@Table(name = "research_banner")
public class ResearchBannerEntity {
    @Id
    private Integer id;
    private String url;
    @Column(name = "research_banner_id")
    private String researchBannerId;
    @Column(name = "banner_type")
    private Integer bannerType;
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @Column(name = "create_time")
    private Date createTime;
    @Column(name = "banner_name")
    private String bannerName;
    @Column(name = "img_url")
    private String imgUrl;
    @Column(name = "pop_img_url")
    private String popImgUrl;
    @Column(name = "banner_explain")
    private String bannerExplain;
    @Column(name = "sort")
    @OrderBy(value = "ASC")
    private String sort;


}
